package serviceimpl;

import java.util.List;

import beans.Typer;
import daoIpmt.TypeDaoIpmt;
import service.TypeService;

public class TypeServiceIpmt implements TypeService {
    TypeDaoIpmt ipmt = new TypeDaoIpmt();
	@Override
	public List<Typer> showList() {
		
		return ipmt.findUsernameByType();
	}

	@Override
	public  void addType(Typer typer) {
		ipmt.addType(typer);
	}

	@Override
	public Typer showType(String username) {
		
		return ipmt.findTypeByUsername(username);
	}

	@Override
	public void modType(Typer typer) {
		ipmt.modType(typer);
		
	}

}
